package com.it.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author agstar
 * @date 2020/4/29 20:45
 */
@Component
public class CircularA {
    /*private CircularB circularB;

    public CircularA(CircularB circularB) {
        this.circularB = circularB;
    }*/

    @Autowired
    private Rainbow rainbow;
    @PostConstruct
    public void afterinit() {
        System.out.println("-----------afterinit--------" + rainbow);
        Red red = rainbow.getRed();
        System.out.println(red);
    }
}
